home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / Newton Platform Info / Newton 2.0 Sample Code / Desktop Connectivity / SoupDrink-2 / SoupDrink-Newton-1 / README.SoupDrink < prev    next >
Encoding:
Text File  |  1996-01-08  |  1.6 KB  |  39 lines  |  [TEXT/R*ch]

  1. /*
  2. **      Newton Developer Technical Support Sample Code
  3. **
  4. **      SoupDrink, code to communicate with desktop DIL applications
  5. **
  6. **      by David Fedor, Rob Langhorne and Christopher Bell
  7. **
  8. **      Copyright © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  9. **
  10. **      You may incorporate this sample code into your applications without
  11. **      restriction.  This sample code has been provided "AS IS" and the
  12. **      responsibility for its operation is 100% yours.  You are not
  13. **      permitted to modify and redistribute the source as "DTS Sample Code."
  14. **      If you are going to re-distribute the source, we require that you
  15. **      make it clear in the source that the code was descended from
  16. **      Apple-provided sample code, but that you've made changes.
  17. */
  18.  
  19.  
  20. This is a Newton package which communicates with the MacOS or Windows
  21. SoupDrink applications, as well as the DILette sample application, all
  22. of which you probably also got with this sample code.
  23.  
  24.  
  25. SoupDrink can connect over ADSP or the serial port (using either straight
  26. serial or MNP).  It expects one of three commands from the desktop machine:
  27. "DRNK", "NAME", or "HELO".
  28.  
  29. *  "DRNK" will initiate a "soup drink" - the contents of a soup will be
  30. transmitted to the desktop computer through a sequence of commands sent
  31. back and forth.
  32.  
  33. *  "NAME" means a frame is being sent from the desktop which should be
  34. added to the Names soup.
  35.  
  36. *  "HELO" causes SoupDrink to respond "Hello" to the desktop, then
  37. immediately drop the connection.  This is primarily for use by DILette to
  38. demonstrate that basic communications were successful.
  39.